package com.example.demo.domain.vip;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.example.demo.domain.tovip.Tovip;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;



public class Vip {
	
	private Tovip tovip;

	private Integer vipId;

    private Integer tovipId;

    private String vipName;

    private String vipTel;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vipMfg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vipExp;

    private Integer vipState;
    
	private BigDecimal vipAccount;

    public Integer getVipId() {
        return vipId;
    }

    public void setVipId(Integer vipId) {
        this.vipId = vipId;
    }

    public Integer getTovipId() {
        return tovipId;
    }

    public void setTovipId(Integer tovipId) {
        this.tovipId = tovipId;
    }

    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName == null ? null : vipName.trim();
    }

    public String getVipTel() {
        return vipTel;
    }

    public void setVipTel(String vipTel) {
        this.vipTel = vipTel == null ? null : vipTel.trim();
    }

    public Date getVipMfg() {
        return vipMfg;
    }

    public void setVipMfg(Date vipMfg) {
        this.vipMfg = vipMfg;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getVipExp() {
        return vipExp;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public void setVipExp(Date vipExp) {
        this.vipExp = vipExp;
    }

    public Integer getVipState() {
        return vipState;
    }

    public void setVipState(Integer vipState) {
        this.vipState = vipState;
    }
    public Tovip getTovip() {
		return tovip;
	}

	public void setTovip(Tovip tovip) {
		this.tovip = tovip;
	}
	
	public BigDecimal getVipAccount() {
		return vipAccount;
	}

	public void setVipAccount(BigDecimal vipAccount) {
		this.vipAccount = vipAccount;
	}
}